package com.one.rope.mvp.web.business.dao;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.one.rope.mvp.web.business.entity.MemberInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.one.rope.mvp.web.common.dto.admin.member.AdminMemberInfoListDTO;
import com.one.rope.mvp.web.common.dto.admin.member.AdminMemberInfoListItemVO;
import com.one.rope.mvp.web.common.dto.admin.member.AdminPersonInfoListDTO;
import com.one.rope.mvp.web.common.dto.admin.member.AdminPersonInfoListItemVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 会员用户信息 Mapper 接口
 * </p>
 *
 * @author wesley
 * @since 2020-02-20
 */
@Repository
public interface MemberInfoMapper extends BaseMapper<MemberInfo> {

  /**
   * 分页查询会员用户列表
   */
  List<AdminMemberInfoListItemVO> selectAdminMemberInfoListByPage(
      @Param("page") Page<AdminMemberInfoListItemVO> page,
      @Param("requestDTO") AdminMemberInfoListDTO requestDTO);

  /**
   * 分页查询人才数据列表
   */
  List<AdminPersonInfoListItemVO> selectAdminPersonInfoListByPage(
      @Param("page") Page<AdminPersonInfoListItemVO> page,
      @Param("requestDTO") AdminPersonInfoListDTO requestDTO);
}
